package com.hwl.acl.mapper;

import com.hwl.acl.pojo.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author long
 * @since 2021-10-16
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 为管理员分配角色
     */
    int addRole(@Param("userId") String userId, @Param("roleIds") String[] roleIds);
}
